<div class="full_w">
    <div class="h_title"><?php echo Yii::t('AdmincpModule.admincp', 'Custom Configurations'); ?></div>
    <?php 
    foreach(Yii::app()->admin->getFlashes() as $key => $message){
        echo '<div class="n_'.$key.'"><p>'.$message."</p></div>\n";
    }
    ?>
    <form action="" method="post">
    	<?php foreach($arrSettings as $R): ?>
        <div class="element">
            <label for="name"><?php echo $R['setting_code'] ?> </label>
            <?php if($R['setting_input_type'] == 'textarea'): ?>
            <textarea class="textarea" name="configs[<?php echo $R['setting_code'] ?>]"><?php echo $R['setting_value'] ?></textarea>
        	<?php else: ?>
            <input type="text" class="text" name="configs[<?php echo $R['setting_code'] ?>]" value="<?php echo $R['setting_value'] ?>">
			<?php endif; ?>
            <p class="description"><?php echo $R['setting_description']; ?></p>
        </div>
        <?php endforeach; ?>
        <div class="entry">
            <input type="hidden" name="id" id="id" value="<?php echo isset($arrItemInfo['post_id'])?$arrItemInfo['post_id']:null; ?>">
            <button type="submit">Submit</button> <button>Reset</button>
        </div>
    </form>
</div>